package com.ruoyi.tcsp.domain.mysql;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 科技新闻对象 tcsp_news_scien
 * 
 * @author ruoyi
 * @date 2025-04-26
 */
public class TcspNewsScien extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 新闻title */
    @Excel(name = "新闻title")
    private String newsTitle;

    /** 新闻url */
    @Excel(name = "新闻url")
    private String newsUrl;

    /** 新闻发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新闻发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setNewsTitle(String newsTitle) 
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() 
    {
        return newsTitle;
    }

    public void setNewsUrl(String newsUrl) 
    {
        this.newsUrl = newsUrl;
    }

    public String getNewsUrl() 
    {
        return newsUrl;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("newsTitle", getNewsTitle())
            .append("newsUrl", getNewsUrl())
            .append("publishTime", getPublishTime())
            .toString();
    }
}
